import request from "@/utils/request"
export const loginAPI = ({ username, password }) => {
    return request({
        url: `/auth/login`,
        method: 'post',
        data: {
            username,
            password
        }
    })
}
// 注册API
export const registerAPI = (data) => {
  return request({
    url: `/auth/register`,
    method: 'post',
    data
  })
}